package ve.usb.ddp;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import java.util.List;
import ve.usb.cohesion.runtime.Pair;


public class FPaiEstatus extends org.apache.struts.action.ActionForm {
    
    
    public FPaiEstatus() {
        super();
        idEstatus = 0l;
        resolucion = 0l;
        listPaiResolucion = null;
        nombre = "";

    }
    
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        idEstatus = 0l;
        resolucion = 0l;
        listPaiResolucion = null;
        nombre = "";

    }

    public static FPaiEstatus clear(ActionMapping mapping, HttpServletRequest request) {
        HttpSession sess = request.getSession();
        FPaiEstatus fFPaiEstatus = (FPaiEstatus) sess.getAttribute("FPaiEstatus");
        if (fFPaiEstatus == null) {
            fFPaiEstatus = new FPaiEstatus();
            sess.setAttribute("FPaiEstatus", fFPaiEstatus);
        } else {
            fFPaiEstatus.reset(mapping, request);
        }
        return fFPaiEstatus;
    }

//    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
//        ActionErrors errors = new ActionErrors();
//
//        return errors;
//    }

/**
     * Holds value of property idEstatus.
     */
    private Long idEstatus;

    /**
     * Getter for property idEstatus.
     * @return Value of property idEstatus.
     */
    public Long getIdEstatus() {
        return this.idEstatus;
    }

    /**
     * Setter for property idEstatus.
     * @param idEstatus New value of property idEstatus.
     */
    public void setIdEstatus(Long idEstatus) {
        this.idEstatus = idEstatus;
    }

/**
     * Holds value of property resolucion.
     */
    private Long resolucion;

    /**
     * Getter for property resolucion.
     * @return Value of property resolucion.
     */
    public Long getResolucion() {
        return this.resolucion;
    }

    /**
     * Setter for property resolucion.
     * @param resolucion New value of property resolucion.
     */
    public void setResolucion(Long resolucion) {
        this.resolucion = resolucion;
    }

/**
     * Holds value of property listPaiResolucion.
     */
    private List<Pair> listPaiResolucion;

    /**
     * Getter for property listPaiResolucion.
     * @return Value of property listPaiResolucion.
     */
    public List<Pair> getListPaiResolucion() {
        return this.listPaiResolucion;
    }

    /**
     * Setter for property listPaiResolucion.
     * @param listPaiResolucion New value of property listPaiResolucion.
     */
    public void setListPaiResolucion(List<Pair> listPaiResolucion) {
        this.listPaiResolucion = listPaiResolucion;
    }

/**
     * Holds value of property nombre.
     */
    private String nombre;

    /**
     * Getter for property nombre.
     * @return Value of property nombre.
     */
    public String getNombre() {
        return this.nombre;
    }

    /**
     * Setter for property nombre.
     * @param nombre New value of property nombre.
     */
    public void setNombre(String nombre) {
        this.nombre = nombre;
    }




}